home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / man / cmds.fmt / lprm.man < prev    next >
Encoding:
Text File  |  1989-08-21  |  2.9 KB  |  133 lines

  1.  
  2.  
  3.  
  4. LPRM                      User Commands                      LPRM
  5.  
  6.  
  7.  
  8. NNAAMMEE
  9.      lprm - remove jobs from the line printer spooling queue
  10.  
  11. SSYYNNOOPPSSIISS
  12.      llpprrmm [ --PP_p_r_i_n_t_e_r ] [ -- ] [ job # ...  ] [ user ...  ]
  13.  
  14. DDEESSCCRRIIPPTTIIOONN
  15.      _L_p_r_m will remove a job, or jobs, from a printer's spool
  16.      queue.  Since the spooling directory is protected from
  17.      users, using _l_p_r_m is normally the only method by which a
  18.      user may remove a job.
  19.  
  20.      _L_p_r_m without any arguments will delete the currently active
  21.      job if it is owned by the user who invoked _l_p_r_m.
  22.  
  23.      If the -- flag is specified, _l_p_r_m will remove all jobs which
  24.      a user owns.  If the super-user employs this flag, the spool
  25.      queue will be emptied entirely. The owner is determined by
  26.      the user's login name and host name on the machine where the
  27.      _l_p_r command was invoked.
  28.  
  29.      Specifying a user's name, or list of user names, will cause
  30.      _l_p_r_m to attempt to remove any jobs queued belonging to that
  31.      user (or users).  This form of invoking _l_p_r_m is useful only
  32.      to the super-user.
  33.  
  34.      A user may dequeue an individual job by specifying its job
  35.      number.  This number may be obtained from the _l_p_q(1) pro-
  36.      gram, e.g.
  37.  
  38.           % lpq -l
  39.  
  40.           1st: ken                          [job #013ucbarpa]
  41.                (standard input)             100 bytes
  42.           % lprm 13
  43.  
  44.      _L_p_r_m will announce the names of any files it removes and is
  45.      silent if there are no jobs in the queue which match the
  46.      request list.
  47.  
  48.      _L_p_r_m will kill off an active daemon, if necessary, before
  49.      removing any spooling files.  If a daemon is killed, a new
  50.      one is automatically restarted upon completion of file remo-
  51.      vals.
  52.  
  53.      The --PP option may be usd to specify the queue associated
  54.      with a specific printer (otherwise the default printer, or
  55.      the value of the PRINTER variable in the environment is
  56.      used).
  57.  
  58. FFIILLEESS
  59.      /etc/printcap       printer characteristics file
  60.  
  61.  
  62.  
  63. Sprite v1.0              April 29, 1985                         1
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. LPRM                      User Commands                      LPRM
  71.  
  72.  
  73.  
  74.      /usr/spool/*        spooling directories
  75.      /usr/spool/*/lock   lock file used to obtain the pid of the current
  76.                          daemon and the job number of the currently active job
  77.  
  78. SSEEEE AALLSSOO
  79.      lpr(1), lpq(1), lpd(8)
  80.  
  81. DDIIAAGGNNOOSSTTIICCSS
  82.      ``Permission denied" if the user tries to remove files other
  83.      than his own.
  84.  
  85. BBUUGGSS
  86.      Since there are race conditions possible in the update of
  87.      the lock file, the currently active job may be incorrectly
  88.      identified.
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129. Sprite v1.0              April 29, 1985                         2
  130.  
  131.  
  132.  
  133.